package com.example.demo.dao;

import com.example.demo.entity.SysEvaluationShop;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.type.JdbcType;

public interface SysEvaluationShopMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_evaluation_shop
     *
     * @mbg.generated
     */
    @Delete({
        "delete from sys_evaluation_shop",
        "where evaluation_id = #{evaluationId,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer evaluationId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_evaluation_shop
     *
     * @mbg.generated
     */
    @Insert({
        "insert into sys_evaluation_shop (evaluation_id, shop_id)",
        "values (#{evaluationId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER})"
    })
    int insert(SysEvaluationShop record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_evaluation_shop
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "evaluation_id, shop_id",
        "from sys_evaluation_shop",
        "where evaluation_id = #{evaluationId,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="evaluation_id", property="evaluationId", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="shop_id", property="shopId", jdbcType=JdbcType.INTEGER)
    })
    SysEvaluationShop selectByPrimaryKey(Integer evaluationId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_evaluation_shop
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "evaluation_id, shop_id",
        "from sys_evaluation_shop"
    })
    @Results({
        @Result(column="evaluation_id", property="evaluationId", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="shop_id", property="shopId", jdbcType=JdbcType.INTEGER)
    })
    List<SysEvaluationShop> selectAll();

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_evaluation_shop
     *
     * @mbg.generated
     */
    @Update({
        "update sys_evaluation_shop",
        "set shop_id = #{shopId,jdbcType=INTEGER}",
        "where evaluation_id = #{evaluationId,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(SysEvaluationShop record);
}